package com.shanzmoo.db.store.entity.vo;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 仓库采购供应商 vo对象
 *
 * @author xueqz 2021-03-03
 */
@Data
@ApiModel("仓库采购供应商-vo询对象")
public class StorePurchaseSupplierVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;
    @ApiModelProperty(value = "供应商名称")
    private String name;
    @ApiModelProperty(value = "状态：0-禁用,1-启用")
    private Boolean status;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建人")
    private Integer createUser;
    @ApiModelProperty(value = "更新人")
    private Integer updateUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "逻辑删除，0-未删除 1-已删除")
    private Boolean deleted;

    public static CheckSupplierVO change(StorePurchaseSupplierVO storePurchaseSupplierVO) {
        return JSON.parseObject(JSON.toJSONString(storePurchaseSupplierVO), CheckSupplierVO.class);
    }

}
